package gui;

import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class PrimaryGui extends JFrame{
	
	private String name;
	private String date;
	private String[] myArray;
	final String str;
	
	
	public PrimaryGui(){
		
		str = JOptionPane.showInputDialog(null, "Inserisci il tuo nome \nes. Mario Rossi");
		
		
	}
	
	public void createGui(){
		
		
		SecondaryGui gui2 = new SecondaryGui();
	}
	
	public void getInfo(){
		
		//myArray = str.split("-");
		/*name = myArray[0];
		date = myArray[1];*/
		
		//JOptionPane.showConfirmDialog(null, name);
		//JOptionPane.showConfirmDialog(null, date);
	}
	
	public String getName(){
		//name = myArray[0];
		name = str;
		return name;
	}	
	
	
}
